package com.newsystem.mapper;

import com.newsystem.pojo.News;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chenlitao
 * @since 2022-11-06
 */
@Mapper
public interface NewsMapper extends BaseMapper<News> {

    News selectByMediumIdNewId(String newsId,String mediumId);

    int deleteNews(@Param("mediumId") String mediumId, @Param("newsId") List<String> newsId);
}
